/**
 * 
 */
package sk.stuba.fiit.foo07.genex.beans;

/**
 * @author Martin
 * 
 */
public class Answer {

    private String text;
    private Boolean isCorrect;
    private Integer answerID;
    private Integer questionID;

    public Answer() {

    }

    public Answer(String text, Boolean isCorrect, Integer answerID,
            Integer questionID) {
        super();
        this.text = text;
        this.isCorrect = isCorrect;
        this.answerID = answerID;
        this.questionID = questionID;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text
     *                the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @return the isCorrect
     */
    public Boolean getIsCorrect() {
        return isCorrect;
    }

    /**
     * @param isCorrect
     *                the isCorrect to set
     */
    public void setIsCorrect(Boolean isCorrect) {
        this.isCorrect = isCorrect;
    }

    /**
     * @return the answerID
     */
    public Integer getAnswerID() {
        return answerID;
    }

    /**
     * @param answerID
     *                the answerID to set
     */
    public void setAnswerID(Integer answerID) {
        this.answerID = answerID;
    }

    /**
     * @return the questionID
     */
    public Integer getQuestionID() {
        return questionID;
    }

    /**
     * @param questionID
     *                the questionID to set
     */
    public void setQuestionID(Integer questionID) {
        this.questionID = questionID;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return this.text;
    }

}
